package com.qfjy.homework.wanghuan;

/**
 * @author: WangHuan
 * @DATE: 2022/11/10 19:47
 * @version: 1.0
 */


/**
 * 编写测试动态代理的方法
 */
public class TestDemo {

    public static void main(String[] args) {


        ProxyUtils proxyUtils = new ProxyUtils(new ITBoss());

        Object proxy = proxyUtils.getProxy();

        //向上转型---接口承接，方便维护升级
        Boss Boos = (Boss) proxy;

        Boos.sign();


    }

}
